package com.obas.business.analogy.service.impl;

import java.util.Date;

import com.ease.common.vo.MapParameter;
import com.obas.business.analogy.service.RawAnalogyProcessService;
import com.obas.business.analogy.util.AnalogyTableNameUtil;
import com.obas.business.analogy.vo.AnalogyContextParam;

public class RawAnalogyProcessServiceImpl extends AbstractAnalogyProcessServiceImpl<AnalogyContextParam> implements RawAnalogyProcessService {

	static class Operation {
		static String updateSummation = "updateSummation";
	}

	public void process(AnalogyContextParam analogyContextParam) {
		// loader();
//		analogyContextParam.setProcessDimensionType(ProcessDimensionType.RAW);

		String tableName = AnalogyTableNameUtil.tableName(analogyContextParam);
		Date batchTimestamp = analogyContextParam.getBatchTimestamp();

		MapParameter parameter = new MapParameter();
		parameter.put("tableName", tableName);
//		parameter.put(DimensionAttributeType.BATCHTIMESTAMP.getCode(), batchTimestamp);

		this.getJdbcTemplateDataAccessObject().execute(statement(Operation.updateSummation, parameter), parameter);
	}

}
